#ifndef INETWORKMANAGER_H
#define INETWORKMANAGER_H

#include "portablelibrary.h"
#include "player.h"

class INetworkManager
{
 public:
  virtual void addPlayer(Player *) = 0;
  virtual void removePlayer(Player *) = 0;
  virtual void run(long uTimeout = -1) = 0;
  virtual void runGame(long uTimeout = -1) = 0;

};

#ifdef OS_WINDOWS
#include "windowsnetworkmanager.h"
typedef class Win32NetworkManager PortableNetworkManager;
#elif defined OS_UNIX
#include "unixnetworkmanager.h"
typedef class UNIXNetworkManager PortableNetworkManager;
#endif

#endif // INETWORKMANAGER_H
